(function(){
tinymce.PluginManager.requireLangPack("clozeeditor");
tinymce.create("tinymce.plugins.ClozeEditorPlugin",
{
init:function(a,b)
{
a.addCommand("mceclozeeditor",function()
{
a.windowManager.open(
{
file:b+"/dialog.php",
width:490+parseInt(a.getLang("clozeeditor.delta_width",0)),
height:360+parseInt(a.getLang("clozeeditor.delta_height",0)),
inline:1},
{
plugin_url:b,
some_custom_arg:"custom arg"
})
});

a.addButton("clozeeditor",
{
title:"clozeeditor.desc",
cmd:"mceclozeeditor",
image:b+"/img/ed_cloze_editor.png"
});

a.onNodeChange.add(
function(d,c,e)
{
c.setActive("clozeeditor",e.nodeName=="IMG")
})
},

createControl:function(b,a)
{
return null
},
getInfo:function()
{
return{longname:"clozeeditor plugin",
author:"Some author",
authorurl:"http://tinymce.moxiecode.com",
infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/clozeeditor",
version:"1.0"
}
}
});

tinymce.PluginManager.add("clozeeditor",tinymce.plugins.ClozeEditorPlugin)
})();